<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="org.springside.modules.security.domain">
	<!-- 适用部门表 -->
    <class name="SystemWorkHourDept" table="system_workhour_dept">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">SYSTEMWORKHOUR_DEPT_ID_SEQ</param>
            </generator>
        </id>
        <!--对应班组-->
		<many-to-one name="systemWorkhour" column="system_workhour_id"
			class="SystemWorkhour" />
		<!-- 对应部门 -->
		<many-to-one name="dept" column="dept_id"
			class="Dept" />
         
    </class>
</hibernate-mapping>
